﻿using System;
using System.Collections.Generic;
using System.Text;

namespace File.Api.Models
{
    public class QCOrderModel
    {
        public int Type { get; set; }

        public string Code { get; set; }

        public string OrgId { get; set; }

        public string OrgName { get; set; }

        public string DepName { get; set; }

        public string SetionName { get; set; }

        public string ExtCode { get; set; }

        public string SapCode { get; set; }

        /// <summary>
        /// 工厂编号（3306，3321）
        /// </summary>
        public string OrgCode { get; set; }

        /// <summary>
        /// 工序分组
        /// </summary>
        public int SectionGroup { get; set; }

        /// <summary>
        /// 产品
        /// </summary>
        public string ProductId { get; set; }

        public string ProductCode { get; set; }

        public string ProductName { get; set; }

        /// <summary>
        /// 客户
        /// </summary>
        public string CustomerId { get; set; }

        public string CustomerCode { get; set; }

        public string CustomerName { get; set; }

        /// <summary>
        /// 客户物料条码
        /// </summary>
        public string CustomerProductCode { get; set; }

        public string SaleCode { get; set; }

        public string SaleRow { get; set; }

        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 裸灯ID
        /// </summary>
        public string BomProductCode { get; set; }

        /// <summary>
        /// 裸灯 数量
        /// </summary>
        public decimal BomProductQty { get; set; }

        /// <summary>
        ///  裸灯数量单位
        /// </summary>
        public string BomProductUnit { get; set; }

        public decimal? WorkBomProductQty { get; set; }

        /// <summary>
        /// 是否展示裸灯信息
        /// </summary>
        public bool IsShowNakedLamp { get; set; }

        /// <summary>
        /// 审核章号
        /// </summary>
        public string ExamineSealCode { get; set; }

        public List<QCOrderDetailModel> DetailModels { get; set; } = new List<QCOrderDetailModel>();
        
        public List<QCOrderVersionModel> VersionModels { get; set; } = new List<QCOrderVersionModel>();
    }
}
